< Prev(J) / Next(K) > / View :

Filename: /text/scalc/05/empty_cells.xhp

(bookmark: bm_id3146799)
empty cells;handling of

空白のセル;処理

(variable: empty_cells)Handling of Empty Cells
(variable: empty_cells)空白のセルの処理(hd_id1502121.)

In older versions of the software, empty cells were forced to numeric 0 in some contexts and to empty string in others, except in direct comparison where =A1=0 and =A1="" both resulted in TRUE if A1 was empty. Emptiness now is inherited until used, so both =VLOOKUP(...)=0 and =VLOOKUP(...)="" give TRUE if the lookup resulted in an empty cell being returned.
古いソフトウェアのバージョンでは、空白のセルに対して、一部のコンテキストでは強制的に数値 0 が設定され、そのほかのコンテキストでは空白文字列が設定されていました。例外的に、A1 が空白の場合、=A1=0 と =A1="" の両方の結果は、TRUE でした。空白は使用されるまで継承されるようになったので、ルックアップの結果として空白のセルが返される場合、=VLOOKUP(...)=0 と =VLOOKUP(...)="" は両方 TRUE を返します。(par_id8266853.)

A simple reference to an empty cell is still displayed as numeric 0 but is not necessarily of type numeric anymore, so also comparisons with the referencing cell work as expected.
空白のセルへの単純な参照は、依然として数値 0 として表示されますが、必ずしも数値型ではないので、参照元のセルとの比較が予想どおりに行われます。 (par_id2733542.)

For the following examples, A1 contains a number, B1 is empty, C1 contains the reference to B1:
次の例では、A1 は数値を含み、B1 は空白で、C1 は B1 への参照を含みます。(par_id4238715.)

A1: 1 B1: <empty> C1: =B1 (displays 0)
A1:1 B1:(値なし) C1:=B1 (0 を表示)(par_id8277230.)

=B1=0 => TRUE
=B1=0 => TRUE(par_id4086428.)

=B1="" => TRUE
=B1="" => TRUE(par_id9024628.)

=C1=0 => TRUE
=C1=0 => TRUE(par_id3067110.)

=C1="" => TRUE (previously was FALSE)
=C1="" => TRUE (以前は FALSE)(par_id8841822.)

=ISNUMBER(B1) => FALSE
=ISNUMBER(B1) => FALSE(par_id4077578.)

=ISNUMBER(C1) => FALSE (previously was TRUE)
=ISNUMBER(C1) => FALSE (以前は TRUE)(par_id9094515.)

=ISNUMBER(VLOOKUP(1;A1:C1;2)) => FALSE (B1)
=ISNUMBER(VLOOKUP(1;A1:C1;2)) => FALSE (B1)(par_id396740.)

=ISNUMBER(VLOOKUP(1;A1:C1;3)) => FALSE (C1, previously was TRUE)
=ISNUMBER(VLOOKUP(1;A1:C1;3)) => FALSE (C1、以前は TRUE)(par_id3859675.)

=ISTEXT(B1) => FALSE
=ISTEXT(B1) => FALSE(par_id402233.)

=ISTEXT(C1) => FALSE
=ISTEXT(C1) => FALSE(par_id1623889.)

=ISTEXT(VLOOKUP(1;A1:C1;2)) => FALSE (B1, previously was TRUE)
=ISTEXT(VLOOKUP(1;A1:C1;2)) => FALSE (B1、以前は TRUE)(par_id7781914.)

=ISTEXT(VLOOKUP(1;A1:C1;3)) => FALSE (C1)
=ISTEXT(VLOOKUP(1;A1:C1;3)) => FALSE (C1)(par_id300912.)

=ISBLANK(B1) => TRUE
=ISBLANK(B1) => TRUE(par_id9534592.)

=ISBLANK(C1) => FALSE
=ISBLANK(C1) => FALSE(par_id4969328.)

=ISBLANK(VLOOKUP(1;A1:C1;2)) => TRUE (B1, previously was FALSE)
=ISBLANK(VLOOKUP(1;A1:C1;2)) => TRUE (B1、以前は FALSE)(par_id9635914.)

=ISBLANK(VLOOKUP(1;A1:C1;3)) => FALSE (C1)
=ISBLANK(VLOOKUP(1;A1:C1;3)) => FALSE (C1)(par_id2476577.)

Note Icon 注マーク Note that Microsoft Excel behaves different and always returns a number as the result of a reference to an empty cell or a formula cell with the result of an empty cell. For example:
Microsoft Excel は動作が異なり、空白のセルまたは空白のセルの結果を含む数式セルへの参照の結果を常に数値として返します。たとえば、次のようになります。(par_id4217047.)

A1: <empty>
A1: (値なし)(par_id2629474.)

B1: =A1 => displays 0, but is just a reference to an empty cell
B1:=A1 => 0 を表示しますが、空白のセルへの単なる参照です(par_id8069704.)

=ISNUMBER(A1) => FALSE
=ISNUMBER(A1) => FALSE(par_id4524674.)

=ISTEXT(A1) => FALSE
=ISTEXT(A1) => FALSE(par_id4396801.)

=A1=0 => TRUE
=A1=0 => TRUE(par_id5293740.)

=A1="" => TRUE
=A1="" => TRUE(par_id7623828.)

=ISNUMBER(B1) => FALSE (MS-Excel: TRUE)
=ISNUMBER(B1) => FALSE (MS-Excel:TRUE)(par_id2861720.)

=ISTEXT(B1) => FALSE
=ISTEXT(B1) => FALSE(par_id9604480.)

=B1=0 => TRUE
=B1=0 => TRUE(par_id2298959.)

=B1="" => TRUE (MS-Excel: FALSE)
=B1="" => TRUE (MS-Excel:FALSE)(par_id4653767.)

C1: =VLOOKUP(...) with empty cell result => displays empty (MS-Excel: displays 0)
C1: 結果が空白セルの =VLOOKUP(...) => 空白を表示します (MS-Excel: 0 を表示)(par_id8801538.)

=ISNUMBER(VLOOKUP(...)) => FALSE
=ISNUMBER(VLOOKUP(...)) => FALSE(par_id6746421.)

=ISTEXT(VLOOKUP(...)) => FALSE
=ISTEXT(VLOOKUP(...)) => FALSE(par_id4876247.)

=ISNUMBER(C1) => FALSE (MS-Excel: TRUE)
=ISNUMBER(C1) => FALSE (MS-Excel:TRUE)(par_id7458723.)

=ISTEXT(C1) => FALSE
=ISTEXT(C1) => FALSE(par_id2753379.)


< Prev / Next >